//
//  ViewController.swift
//  PrototypePattern
//
//  Created by 好米有易 on 2017/12/14.
//  Copyright © 2017年 好米有易. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
    
        
        ShapeCache.loadCache()
        
        let clonedShape = ShapeCache.getShape(shapeId: "1")
        
        print("Shape : " + clonedShape.getType())
        
        let clonedShape2 = ShapeCache.getShape(shapeId: "2")
        
        print("Shape : " + clonedShape2.getType())
        
        let clonedShape3 = ShapeCache.getShape(shapeId: "3")
        
        print("Shape : " + clonedShape3.getType())
        
    }
    
}

